package com.easy.common.web;

import java.util.List;

/**
 * Created by Administrator on 2014/4/22.
 */
public class PagedList<T> {
	private int total;// 总记录数

	private List<T> rows;// 分页查询所得数据

	public PagedList(List<T> list) {
		super();
		this.total = list.size();
		this.rows = list;
	}
	
	public PagedList(int total, List<T> list) {
		super();
		this.total = total;
		this.rows = list;
	}

	public PagedList() {
		super();
	}

	public List<T> getRows() {
		return rows;
	}

	public void setRows(List<T> rows) {
		this.rows = rows;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}
}
